package com.robotic.device.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.robotic.common.annotation.Excel;
import com.robotic.common.core.domain.BaseEntity;

/**
 * 检测结果管理对象 device_check_results
 *
 * @author tian
 * @date 2025-09-30
 */
public class DeviceCheckResults extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 器件ID */
    @Excel(name = "器件ID")
    private Long deviceId;

    /** 器件名称 */
    @Excel(name = "器件名称")
    private String deviceName;

    /** 检测位置 */
    @Excel(name = "检测位置")
    private String detectionPosition;

    /** 检测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检测时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 检测结果 */
    @Excel(name = "检测结果")
    private String deviceResult;

    /** 检测结果 */
    @Excel(name = "检测结果")
    private String deviceStandard;

    /** 巡检任务 */
    @Excel(name = "巡检任务")
    private String taskName;

    /** 任务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 任务频次 */
    @Excel(name = "任务频次")
    private String taskFrequency;

    /** 图片 */
    @Excel(name = "图片")
    private String checkUrl;

    /** 诊断结果 */
    @Excel(name = "诊断结果")
    private String diagnosisResult;

    /** 器件类型 */
    @Excel(name = "器件类型")
    private String deviceType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setDeviceId(Long deviceId)
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId()
    {
        return deviceId;
    }

    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }

    public void setDetectionPosition(String detectionPosition)
    {
        this.detectionPosition = detectionPosition;
    }

    public String getDetectionPosition()
    {
        return detectionPosition;
    }

    public void setCheckTime(Date checkTime)
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime()
    {
        return checkTime;
    }

    public void setDeviceResult(String deviceResult)
    {
        this.deviceResult = deviceResult;
    }

    public String getDeviceResult()
    {
        return deviceResult;
    }

    public void setDeviceStandard(String deviceStandard)
    {
        this.deviceStandard = deviceStandard;
    }

    public String getDeviceStandard()
    {
        return deviceStandard;
    }

    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName()
    {
        return taskName;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }

    public void setTaskFrequency(String taskFrequency)
    {
        this.taskFrequency = taskFrequency;
    }

    public String getTaskFrequency()
    {
        return taskFrequency;
    }

    public void setCheckUrl(String checkUrl)
    {
        this.checkUrl = checkUrl;
    }

    public String getCheckUrl()
    {
        return checkUrl;
    }

    public void setDiagnosisResult(String diagnosisResult)
    {
        this.diagnosisResult = diagnosisResult;
    }

    public String getDiagnosisResult()
    {
        return diagnosisResult;
    }

    public void setDeviceType(String deviceType)
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType()
    {
        return deviceType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("detectionPosition", getDetectionPosition())
            .append("checkTime", getCheckTime())
            .append("deviceResult", getDeviceResult())
            .append("deviceStandard", getDeviceStandard())
            .append("taskName", getTaskName())
            .append("startTime", getStartTime())
            .append("taskFrequency", getTaskFrequency())
            .append("checkUrl", getCheckUrl())
            .append("diagnosisResult", getDiagnosisResult())
            .append("deviceType", getDeviceType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
